package pojo;

import java.util.Date;

// 班委会人员类（CommitteeMember）
public class CommitteeMember {
    private int appointmentId; //委任ID
    private int studentId;
    private String stuName;
    private String position;
    private Date appointmentDate;
    private String termDuration; // 期限
    private String number;
    private String className;
    public CommitteeMember() {
    }

    public CommitteeMember(int appointmentId, int studentId, String position, Date appointmentDate, String termDuration) {
        this.appointmentId = appointmentId;
        this.studentId = studentId;
        this.position = position;
        this.appointmentDate = appointmentDate;
        this.termDuration = termDuration;
    }

    // getters and setters

    public String getClassName() {
        return className;
    }

    public CommitteeMember setClassName(String className) {
        this.className = className;
        return this;
    }

    public String getNumber() {
        return number;
    }

    public CommitteeMember setNumber(String number) {
        this.number = number;
        return this;
    }

    public String getStuName() {
        return stuName;
    }

    public CommitteeMember setStuName(String stuName) {
        this.stuName = stuName;
        return this;
    }

    public int getAppointmentId() {
        return appointmentId;
    }

    public void setAppointmentId(int appointmentId) {
        this.appointmentId = appointmentId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public java.sql.Date getAppointmentDate() {
        java.sql.Date date = new java.sql.Date(this.appointmentDate.getTime());

        return date;
    }

    public void setAppointmentDate(Date appointmentDate) {
        this.appointmentDate = appointmentDate;
    }

    public String getTermDuration() {
        return termDuration;
    }

    public void setTermDuration(String termDuration) {
        this.termDuration = termDuration;
    }
}

